// https://min.erkantv.cn:443/han/hanJuji

import {
	request
} from "@/utils/request.js";


// 页面头部轮播图数据
export function swiperImg(pageSize, type) {
	return request({
		url: '/collection/all',
		data: {
			pageNum: 1,
			pageSize: pageSize,
			type: type
		}
	});

}

// 页面即将上线数据
// export function scrollTrailer(type) {
// 	return request({
// 		url: '/collectionTrailer/all',
// 		data: {
// 			pageNum: 1,
// 			pageSize: 12,
// 			type: type,
// 			order :0
// 		}
// 	});

// }

// 观看记录
export function WatchSelect(id) {
	return request({
		url: '/collectionWatch/select',
		data: {
			pageNum: 1,
			pageSize: 2,
			userId: id
		}
	});

}

// 页面影视标题导航
export function SelectionSelect(num, size, type) {
	return request({
		url: '/collectionIndexSelection/select',
		data: {
			pageNum: num,
			pageSize: size,
			type: type
		}
	});

}

// 页面标题标签导航内容
export function SelectionSelectVideo(pagenum, pagesize, type, sortId) {
	return request({
		url: '/collectionTags/all',
		data: {
			pageNum: pagenum,
			pageSize: pagesize,
			type: type,
			sortId: sortId
		}
	});

}


// 页面带小图的轮播图
export function swiperimgsBanner(type, order) {
	return request({
		url: '/collection/orderLast',
		data: {
			pageNum: 1,
			pageSize: 8,
			type: type,
			order: order,
			yesVideo: false
		}
	});

}

// 页面触底刷新
export function lastVideo(pageNum, type) {
	return request({
		url: '/collection/all',
		data: {
			pageNum: pageNum,
			pageSize: 12,
			type: type
		}
	});

}
// 页面头部导航标签
export function CollectionNav() {
	return request({
		url: '/collectionNavigation/all'
	});

}
// 页面标签选片神奇
export function CollectionYurt() {
	return request({
		url: '/collectionYurt/all'
	});

}
// 页面标签选片神奇
export function CollectionYear() {
	return request({
		url: '/collectionYear/all'
	});

}
// 页面标签选片神奇
export function CollectionTags() {
	return request({
		url: '/collectionTag/all',
	});

}
// 筛选神奇
export function TagsYearYurt(type, sortId, yurt, year) {
	return request({
		url: '/collectionTags/sort',
		data: {
			pageNum: 1,
			pageSize: 9,
			type: type,
			sortId: sortId,
			yurt: yurt,
			year: year
		}
	});

}
// 每个页面头的导航栏
export function CollectionNavTime(type) {
	return request({
		url: '/collectionNav/list',
		data: {
			type: type,
		}
	});

}